<?php
session_start(); 
if(!isset($_SESSION['userName'])){
header( 'location:../index.php' ); 
}
	include("../../conf/connect.php");
	$user_id = $_SESSION['user_id'];
	$hid = $_SESSION['usrHHid'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../../style.css" media="screen" />
	<link rel="shortcut icon" href="images/favicon.ico" />
</head>
<body class="iub_back">
	<form method="post" action="../sedit.php?qus=updlink">
	<table align="center" class="table_border">
			<tr>
					<td class="header"><b class="htext">IUB Survey :: </b><br /><hr /> </td>
			</tr>
						
			<?php
				$sql ="SELECT * FROM raw_data where user_id='$user_id' and hid='$hid'";
				$result=mysql_query( $sql);
			?>
			<tr>
					<td> Member : </td>
			</tr>
			<tr>
					<td>
						<input type="hidden" name="hid" value="<?php echo $hid; ?>" />
						<select name="memid">
						<?php
							
							$data;
							while($row = mysql_fetch_array($result)){
						?>
								<option value="<?php echo $row['id'];?>"><?php echo $row['q1'];?></option>
						<?php
							}
						?>						
						</select>
					</td>
			</tr>
			<tr>
					<td valign="top">Search For : </td>
			</tr>
			<tr>
					<td valign="top"> 
							
							<select name="block">
								<option value="1">Employment</option>
								<option value="2">Smoking/Chewing Pan</option>
								<option value="3">General Health</option>
								<option value="4">Chronic Morbidity</option>
							</select>
					</td>
			</tr>
			<tr>
					<td align="right"><input type="submit" value="View" class="input-box" /></td>
			</tr>			
		</table>
		</form>
</body>
</html>